var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var _ = require("underscore");

//定义model的规范
var newSchema = new Schema({
    level: Number,//目录级别
    name: String, //目录名称
    parent_id: String,//父亲目录ID
    system_user_id: String,//系统用户ID
    create_date: Date //创建目录日期
});

//注册model
mongoose.model("CafeCategory", newSchema);

//获得Model
var CafeCategory = mongoose.model("CafeCategory");

module.exports = CafeCategory;